package io.lkt.modules.sys.dao;

import io.lkt.modules.sys.entity.WantedUsersEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lkt.modules.sys.entity.WantedUsersLogEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 全网通缉用户名单
 *
 * @author xss
 * @email dustwas@163.com
 * @date 2021-01-20 11:44:02
 */
@Mapper
public interface WantedUsersDao extends BaseMapper<WantedUsersEntity> {
    List<WantedUsersEntity> queryList(Map<String, Object> map);

    Integer queryTotal(Map<String, Object> map);

    WantedUsersEntity queryById(Integer id);

    List<WantedUsersEntity> queryByNickName(String nickName);

    int creatWanted(WantedUsersEntity wantedUsersEntity);

    void updateWanted(WantedUsersEntity wantedUsersEntity);

    void deleteWantedByIds(Integer id);

    int addWantedUsersLog(WantedUsersLogEntity wantedUsersLog);
}
